home *** CD-ROM | disk | FTP | other *** search
/ Web Shop Designer 2000 / Web Shop Designer 2000 - Disc 1.iso / WebShop 2000 / data1.cab / Library_Files / Library / Component_Library / Counters / DarkGrayCounter7.boo < prev    next >
Text File  |  2000-02-14  |  756b  |  27 lines

  1. //Dark Gray Counter   7 digits
  2. //Counter.htm
  3.  
  4. #include ..\CompTransStrings.boo
  5. ActiveWord = getMainSiteManager().getPhysicalLayout().getActiveWord();
  6. if(ActiveWord <> NULL) then
  7. {
  8.   Component = openComponent();
  9.   WordCounter = Component.getPhysicalLayout().getRootFolder().getResource(0).getWord();
  10.   WordCounter.setSelection(-1, -1);
  11.   Select = WordCounter.getSelectedContext();
  12.   
  13.   ActiveWord.insertContext(Select);
  14.   ActiveWord.update();
  15.   
  16.   WordCounter.deleteContext(Select);
  17.  
  18.   CounterFolder = Component.getPhysicalLayout().getRootFolder().getResource(1);
  19.   
  20.   getMainSiteManager().getPhysicalLayout().getDefaultScriptFolder().insertResource(CounterFolder);  
  21.  
  22.   closeComponent(Component);
  23. }
  24. else
  25. {
  26.   messageBox(message);
  27. }